package libary;

public abstract class Book {
    private String name;
    private int borrowingPeriod;

    public Book() {
    }

    public Book(String name, int borrowingPeriod) {
        this.name = name;
        this.borrowingPeriod = borrowingPeriod;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getBorrowingPeriod() {
        return borrowingPeriod;
    }

    public void setBorrowingPeriod(int borrowingPeriod) {
        this.borrowingPeriod = borrowingPeriod;
    }

    public abstract double calFines(int borrowingDays);
}
